﻿using System.ServiceModel.Configuration;

namespace WU.LoadTester.Lib.Service.Bindings
{
    public class NetTcpBinding : System.ServiceModel.NetTcpBinding
    {
        public NetTcpBinding(NetTcpBindingElement element)
        {
            this.CloseTimeout = element.CloseTimeout;
            this.HostNameComparisonMode = element.HostNameComparisonMode;
            this.ListenBacklog = element.ListenBacklog;
            this.MaxBufferPoolSize = element.MaxBufferPoolSize;
            this.MaxBufferSize = element.MaxBufferSize;
            this.MaxConnections = element.MaxConnections;
            this.MaxReceivedMessageSize = element.MaxReceivedMessageSize;
            this.Name = element.Name;
            this.OpenTimeout = element.OpenTimeout;
            this.ReceiveTimeout = element.ReceiveTimeout;
            this.Security.Message.AlgorithmSuite = element.Security.Message.AlgorithmSuite;
            this.Security.Message.ClientCredentialType = element.Security.Message.ClientCredentialType;
            this.Security.Mode = element.Security.Mode;
            this.Security.Transport.ClientCredentialType = element.Security.Transport.ClientCredentialType;
            this.Security.Transport.ProtectionLevel = element.Security.Transport.ProtectionLevel;
            this.SendTimeout = element.SendTimeout;
            this.TransferMode = element.TransferMode;
            this.TransactionFlow = element.TransactionFlow;
            this.TransactionProtocol = element.TransactionProtocol;
            this.TransferMode = element.TransferMode;
        }
    }
}
